package com.jn.exam.easypoi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-01-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Teacher对象", description="")
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ExcelIgnore
    private String id;

    @ApiModelProperty(value = "学校给的id")
    @Excel(name="编号", width = 20)
    private String number;


    @ApiModelProperty(value = "手机号")
    @Excel(name = "手机号", width = 20)
    private String phone;

    @ApiModelProperty(value = "密码")
    @ExcelIgnore
    private String password;

    @ApiModelProperty(value = "姓名")
    @Excel(name = "姓名", width = 20)
    private String name;

    @ApiModelProperty(value = "性别")
    @Excel(name = "性别", replace = {"男_1", "女_2"})
    private Integer sex;

    @ApiModelProperty(value = "年龄")
    @Excel(name = "年龄")
    private Integer age;

    @ApiModelProperty(value = "是否禁用 1表示已禁用")
    @ExcelIgnore
    private Boolean isDisabled;

    @ApiModelProperty(value = "是否删除 1表示已删除")
    @ExcelIgnore
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private Date gmtModified;

    @ApiModelProperty(value = "头像")
    @ExcelIgnore
    private String avatar;


}
